<template>
	<view class="phone">
		<view class="box">{{$t('verifyphone.msg')}}:{{tel}}</view>
		<input type="text" :value="telCurrent" :placeholder="$t('verifyphone.Tel')" @blur="inp"/>
		<button type="default" @click="go">{{$t('verifyphone.next')}}</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				tel:'',
				id:'',
				telCurrent:''
			}
		},
		methods: {
			go(){
				// if(this.id!=this.telCurrent){
				// 	uni.showToast({
				// 		title:'手机号不正确',
				// 		icon:'none'
				// 	})
				// 	return
				// }
				// console.log(this.telCurrent);
				
				//跟换手机号
				if(this.telCurrent){
				uni.navigateTo({
					url:'../check/check?mobile='+this.telCurrent
				})
				}else{
						uni.showToast({
							title:'请输入手机号',
							icon:'none'
						})
				}
			},
			inp(e){
				this.telCurrent=e.detail.value
			}
		},
		mounted() {
			this.tel = uni.getStorageSync('encryptionTel')
		}
	}
</script>

<style scoped>
	.box{
		padding: 30rpx 0;
		width: 86%;
		margin: auto;
		font-size: 1em;
		color: #636363;
	}
.phone{
	height: 94.6vh;
	background-color: #F3F3F3;
}
input{
	padding-left: 40rpx;
	height: 100rpx;
	width: 100%;
	background-color: #FFFFFF;
}
button{
	background-color: #0070f9;
	color: #FFFFFF;
	width: 86%;
	margin: auto;
	height: 100rpx;
	position: relative;
	top: 1000rpx;
}
</style>
